const mysql = require("mysql2");

// 创建数据库连接
const db = mysql.createPool({
  host: "localhost",
  user: "root",
  password: "Wangming21",
  database: "db",
});

// 暴露数据库
module.exports = db.promise();
